<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">

        <title>Chain Responsive Bootstrap3 Admin</title>
 <script src="js/jquery-1.11.1.min.js"></script>
        <script src="js/bootstrap.min.js"></script>
         <link href="js/datePicker/jquery.datetimepicker.css" rel="stylesheet">
        <script src="js/datePicker/jquery.datetimepicker.full.min.js" type="text/javascript"></script>
        <link rel="stylesheet" type="text/css" href="css/pagination.css">
        <script src="js/bootstrap-paginator.min.js"></script>
        <link href="css/style.default.css" rel="stylesheet">

        <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!--[if lt IE 9]>
        <script src="js/html5shiv.js"></script>
        <script src="js/respond.min.js"></script>
        <![endif]-->
    </head>
<script type="text/javascript">

function tijiao(){
	//window.location.href="index.html";
	var username=$("#username").val();
	var password=$("#password").val();
	if(username==''||password==''){
		alert('请输入用户名和密码');
	}else{
	  $.ajax({
			type : "POST",
			url : "./XtAction/login.do",
			data : {
			//id:id_array.join("','")
			"username":username,
			"password":password
			},
			dataType : "json",
			// jsonp:'jsonpCallback',
			success : function(data) {
			//shouye();
			if(data.returnCode=="0"){
				window.location.href="index.html";
			}else{
				alert('用户名或密码错误');
			}
			}
			});
	}
}

</script>
    <body  background="images/bg.jpg" background-repeat:repeat>  <!-- class="signin" -->
        <section>
            <div class="panel panel-signin">
                <div class="panel-body">
                    <div class="logo text-center">
                        <img src="images/logo-primary.png" alt="Chain Logo" >
                    </div>
                    <br />
                    <div class="mb30"></div>

                    <form action="signin.html" method="post">
                        <div class="input-group mb15">
                            <span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
                            <input id="username" type="text" class="form-control" placeholder="账号">
                        </div><!-- input-group -->
                        <div class="input-group mb15">
                            <span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
                            <input id="password" type="password" class="form-control" placeholder="密码">
                        </div><!-- input-group -->

                        <div class="clearfix">
                            <div class="pull-left">
                                <div class="ckbox ckbox-primary mt10">

                                </div>
                            </div>
                            <div class="pull-right">
                                <button onclick="tijiao()" type="button" class="btn btn-success">登录 <i class="fa fa-angle-right ml5"></i></button>
                            </div>
                        </div>
                    </form>

                </div><!-- panel-body -->

            </div><!-- panel -->

        </section>


    </body>
</html>
